Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make lastActiveItemIndex public, so selection on hover can be implemented #201

Merged
merged 2 commits into from
Oct 23, 2023

Conversation

Walingar
Copy link
Collaborator

For the case of selection on hover it is needed to manually modify lastActiveItemIndex, so let's make it public

@Walingar Walingar requested review from fscarponi and rock3r October 23, 2023 12:48
@fscarponi
Copy link
Collaborator

Ok, go for it! One of the next factoring will be to handle style and item state for the items, this will allow us to expose hovered pressed and selected states for each item.

Copy link
Collaborator

@fscarponi fscarponi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably expose a getter will be safer… but ok if is a temporary solution wating for the refactoring for items state

@Walingar
Copy link
Collaborator Author

@fscarponi this is a Kotlin property, so it's always getter and setter functions

@fscarponi
Copy link
Collaborator

@fscarponi this is a Kotlin property, so it's always getter and setter functions

did you need to set this property from the outside?
if not, you should expose the property getter but not the setter

@Walingar
Copy link
Collaborator Author

Yes, this is the intention, to be able to set it outside

@Walingar Walingar enabled auto-merge (squash) October 23, 2023 13:24
@Walingar Walingar disabled auto-merge October 23, 2023 13:25
@Walingar Walingar merged commit e19a094 into main Oct 23, 2023
12 checks passed
@Walingar Walingar deleted the nr/selectable-lazy-column-selection-on-hover branch October 23, 2023 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants